const express = require('express');
const { router } = require('./controllers/todoController');
let app = new express();
app.set('views', __dirname + '/views');
app.set('view engine', 'ejs');
app.use(express.static('./public'));
app.use('/', router);
app.listen(3000, () => {
    console.log('listen at port 3000!');
});
